package moltencore.network.protocol;

import spark.network.Util;
import spark.network.protocol.Base;

public class Logout extends Base {
	public static final short TYPE = 0x12;
	private static final byte[] TYPE_BYTES = Util.makeBytes(TYPE);

	public Logout() {
		super(false, TYPE_BYTES);
	}

	public static Logout create(byte[] buffer, long receiveTime) {
		Logout packet = new Logout();
		packet.fill(buffer);
		packet.setTimeStampReceive(receiveTime);
		return packet;
	}
}
